samsung: board/misc: check returned pointer for get_board_type() calls
authorPrzemyslaw Marczak <[email protected]>
Tue, 27 Oct 2015 12:07:54 +0000 (13:07 +0100)
committerMinkyu Kang <[email protected]>
Mon, 2 Nov 2015 01:37:59 +0000 (10:37 +0900)
commitbc3f39ea0d3c9339b7f09b1d766b6a62e1921033
treea995db40b0242cc4aac71787598305e0223ff420
parent0e067a65f57189703668826d9841fea477026bf6
samsung: board/misc: check returned pointer for get_board_type() calls

The function get_board_type() is called in two places by common code,
but the returned pointer was never check.

This commit adds checking the returned pointer, before use it.

Signed-off-by: Przemyslaw Marczak <[email protected]>
Cc: Minkyu Kang <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Anand Moon <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
board/samsung/common/board.c
board/samsung/common/misc.c